<!--
 * @Author: 矫建武 1452239416@qq.com
 * @Date: 2024-12-17 13:52:19
 * @LastEditTime: 2024-12-17 13:59:40
 * @FilePath: \tool\src\components\FloatWindow\index.vue
 * @Description: 
 * 
 * @file: https://github.com/OBKoro1/koro1FileHeader/wiki/%E5%AE%89%E8%A3%85%E5%92%8C%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B
-->
<!-- 模块说明 -->
<style lang="scss" scoped>
.FloatWindow {
  width: 15vw;
  position: fixed;
  top: 60px;
}
</style>

<template>
  <div class="FloatWindow" :style="type === 'right' ? 'right:0.5vw' : 'left:0.5vw'">
    <slot />
  </div>
</template>

<script setup>
import { defineProps } from 'vue'
const props = defineProps({
  type: {
    type: String,
    default: 'right'
  }
})
</script>
